package cn.yll.api.order.response;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author yangll
 */
@Data
@ApiModel("订单详情返回实体")
public class OrderResponse {

    @ApiModelProperty("记录主键ID")
    private Long id;


    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("订单总金额")
    private Integer totalCost;

    @ApiModelProperty("0新建 10已支付 20已签收 30已取消")
    private Integer bizStatus;

    @ApiModelProperty("创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("最后更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyTime;
}
